<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/edgeSol.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('edgeSol_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">includes/edgeSol.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="edgeSol_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef EDGESOL_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define EDGESOL_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="edgeID_8h.html">edgeID.h</a>&quot;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="comment">/* Edge al senso della soluzione. per ragioni puramente computazionali si è rimossa l&#39;informazione conosciuta ovunque come &#39;g&#39; da edgeSol</span>
<a name="l00008"></a>00008 <span class="comment"> * per spostarla in solution. Questo comunque NON è concettualmente sbagliato poichè &#39;g&#39; è condivisa da tutti i veicoli per il principio di</span>
<a name="l00009"></a>00009 <span class="comment"> * mutua esclusione sulla raccolta, pertanto ha senso che sia posseduta dalla prima struttura che conosce TUTTI i veicoli. */</span>
<a name="l00010"></a><a class="code" href="structEdgeSol.html">00010</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structEdgeSol.html">EdgeSol</a>{
<a name="l00012"></a><a class="code" href="structEdgeSol.html#a232c7f0080ba4dde819365a2d51fb150">00012</a>         <a class="code" href="structEdgeID.html">PedgeID</a> <a class="code" href="structEdgeSol.html#a232c7f0080ba4dde819365a2d51fb150">id</a>;
<a name="l00014"></a><a class="code" href="structEdgeSol.html#ac9347e6f32aa86676ab4a1fb9d2db56f">00014</a>         <span class="keywordtype">int</span> <a class="code" href="structEdgeSol.html#ac9347e6f32aa86676ab4a1fb9d2db56f">x</a>;
<a name="l00015"></a>00015         <span class="comment">//TODO trovare un modo piu&#39; elegante per fare il controllo della connessione</span>
<a name="l00017"></a><a class="code" href="structEdgeSol.html#af766bb744a868d2e482eff459d84e2de">00017</a> <span class="comment"></span>        <span class="keywordtype">int</span> <a class="code" href="structEdgeSol.html#af766bb744a868d2e482eff459d84e2de">marked</a>;
<a name="l00018"></a>00018 } <a class="code" href="edgeSol_8h.html#ac7a218a83dbed248d2b510386243c437">EdgeSol</a>;
<a name="l00019"></a>00019 
<a name="l00023"></a><a class="code" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">00023</a> <span class="keyword">typedef</span> <a class="code" href="structEdgeSol.html">EdgeSol</a>* <a class="code" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a>;
<a name="l00024"></a>00024 
<a name="l00036"></a>00036 <a class="code" href="structEdgeSol.html">PedgeSol</a> <a class="code" href="edgeSol_8h.html#a4a0c0ef763784c2a80924afa89f42403">initEdgeSol</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pe, <span class="keywordtype">int</span> _x);
<a name="l00037"></a>00037 
<a name="l00052"></a>00052 <a class="code" href="structEdgeSol.html">PedgeSol</a> <a class="code" href="edgeSol_8h.html#a0e7e1cf87eb2453e23394940c1333231">initEdgeSolCustomized</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pe, <span class="keywordtype">int</span> _x, <span class="keywordtype">int</span> _marked);
<a name="l00053"></a>00053 
<a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="edgeSol_8h.html#ae32c94f56af7d1d69b1c5afb2012deeb">freeEdgeSol</a>(<a class="code" href="structEdgeSol.html">PedgeSol</a> pes);
<a name="l00060"></a>00060 
<a name="l00071"></a>00071 <a class="code" href="structEdgeSol.html">PedgeSol</a> <a class="code" href="edgeSol_8h.html#a38db5b4c8a00e1d31b4eff619146cb40">cloneEdgeSol</a>(<a class="code" href="structEdgeSol.html">PedgeSol</a> edgesol);
<a name="l00072"></a>00072 
<a name="l00079"></a>00079 <span class="keywordtype">void</span> <a class="code" href="edgeSol_8h.html#a62bd64dff0c3092e750fb0178a800856">printEdgeSol</a>(FILE* f, <a class="code" href="structEdgeSol.html">PedgeSol</a> pes);
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="preprocessor">#endif </span><span class="comment">/* EDGESOL_H_ */</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="edgeSol_8h.html">edgeSol.h</a>      </li>

    <li class="footer">Generated on Wed Sep 4 2013 06:38:56 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
